#!/usr/bin/env python2.3

import time
import os.path
from activist.Config import Config
from twisted.internet import reactor

if not os.path.isdir(os.path.join(Config.base,'data/commands.log')):
    os.system( 'mkdir %s'%os.path.join(Config.base,'data/commands.log') )

from activist.DataStore import DataStore
from activist.Person import Person
from activist.Group import Group
from activist.Place import Place
from activist.Event import Event
from activist.Comment import Comment
from activist.Text import Text
from activist.Article import Article
from activist.Alias import Alias
from activist.GenericData import GenericData
from activist.EventInformation import EventInformation
from activist.MetaData import MetaData
from activist.CommandProcessor import CommandProcessor
import activist.Place
import activist.Person
import activist.Event
import activist.Time
import activist.Category

import sys

if len(sys.argv) != 3:
    print "usage:",sys.argv[0],"<source> <target>"
    sys.exit(-1)

CommandProcessor.loadAndProcess()
alias = Alias(sys.argv[1],sys.argv[2])
print "created alias with id:",alias.id(),alias

